package cn.ilikes.tools.hbase.jpa.metadatas.orms;

import cn.ilikes.tools.hbase.jpa.metadatas.orms.pasers.DOM4JPaser;
import cn.ilikes.tools.hbase.jpa.metadatas.orms.pasers.DOM4JPaserException;

public class ORMPaser implements IORMPaser {

	DOM4JPaser dom4jPaser = new DOM4JPaser();

	private ORMMetaDataFactory ormetaDataFactory;

	public ORMPaser(ORMMetaDataFactory ormetaDataFactory) {
		super();
		this.ormetaDataFactory = ormetaDataFactory;
	}

	@Override
	public void paser(String file) throws DOM4JPaserException {
		dom4jPaser.paser(file, ormetaDataFactory.getEntityMappings());
	}

}
